package com.kotlinvben.entity

import jakarta.persistence.*

/**
 * @author wxluo2
 * @date 2025/5/29 16:36
 */
@Entity
@Table(name = "role_menus")
data class RoleMenu(
    @Id
    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "role_id", nullable = false)
    var role: Role,

    @Id
    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "menu_id", nullable = false)
    var menu: Menu,
)
